/*!
 * Copyright (c) Enalean, 2018. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

#disk-usage-pie-legend {
    padding: 20px;

    > ul {
        margin: 0;
        padding: 0;
    }
}

#disk-usage-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.disk-usage-pie-legend {
    display: flex;
    align-items: center;
    text-decoration: none;

    > .disk-usage-pie-legend-text-span {
        min-height: 0;
        color: #747474;
        font-size: 12px;
        line-height: 18px;
        cursor: default;
    }

    > .disk-usage-pie-legend-color-span {
        flex: 0 0 auto;
        width: 12px;
        height: 12px;
        min-height: 0;
        margin: 0 5px 0 0;
        border-radius: 50%;
        opacity: .8;
    }
}

.disk-usage-pie-legend-selected {
    font-weight: 600;
}

.disk-usage-pie-legend-color-used {
    background-color: #58b359;
}

.disk-usage-pie-legend-color-remaining {
    background-color: #cccccc;
}

.disk-usage-pie-slice-path {
    opacity: .8;
}

.disk-usage-pie-slice-text {
    font-weight: 600;
}

.disk-usage-pie-slice-used {

    > path {
        fill: #58b359;
    }

    > text {
        fill: darken(#58b359, 10%);
    }
}

.disk-usage-pie-slice-remaining {

    > path {
        fill: #cccccc;
    }

    > text {
        fill: darken(#cccccc, 10%);
    }
}
